cmake_minimum_required(VERSION 3.26)
project(TeyvatSurvival)

set(CMAKE_CXX_STANDARD 20)

set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR D:/CppPkg/SFML-2.6.1/lib/cmake/SFML)
# 使用 vcpkg 模块
find_package(SFML COMPONENTS system window graphics network audio REQUIRED)

add_executable(TeyvatSurvival main.cpp
        utils/Vector.h
        Graphic/Graphic.h
        Physics/Collision/Collision.h
        Game/Obj/GameObj.h
        lang.h
        Game/Obj/Player.cpp
        Physics/Collision/Collision.cpp
        Physics/Collision/visual.cpp
        Graphic/const.cpp
        Game/Obj/Bullet.cpp
        Game/Obj/Manager.h
        Game/Obj/CollisionManager.cpp
        Game/GAME.h
        Game/Msg/Message.h
        Game/Obj/Enemy.cpp
        Game/weapon/Weapon.h
)

include_directories(D:/CppPkg/SFML-2.6.1/include)
target_link_libraries(TeyvatSurvival sfml-system sfml-window sfml-graphics sfml-audio sfml-network)
